package org.ybxb.ybxbdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @ProjectName: ybxb-demo
 * @PackageName: org.ybxb.ybxbdemo.controller
 * @Description:
 * @Author: hy.bai
 * @Date: 2024-06-15 15:56
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        return "hello Jenkins - v1.0.1 " + formatter.format(LocalDateTime.now());
    }
}
